package generic_test;

/**
 * @author yuisama
 * @date 2022/05/08 16:52
 **/
public class MyPointNew<T,E> {
    private T x;
    private E y;

    public T getX() {
        return x;
    }

    public void setX(T x) {
        this.x = x;
    }

    public E getY() {
        return y;
    }

    public void setY(E y) {
        this.y = y;
    }

    public static void main(String[] args) {
        MyPointNew<String,Integer> pointNew = new MyPointNew<>();
        pointNew.setX("123");
        pointNew.setY(123);
        MyPointNew<Integer,Integer> pointNew1 = new MyPointNew<>();
        pointNew1.setX(10);
        pointNew1.setY(10);
    }
}